package com.net.wanjian.networkhospitalmanager.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.net.wanjian.networkhospitalmanager.R;
import com.net.wanjian.networkhospitalmanager.adapter.base.RecyclerBaseAdapter;
import com.net.wanjian.networkhospitalmanager.utils.URLDecoderUtil;

/**
 * Created by WJ on 2017/8/23.
 */

public class SignTimeItemAdapterX extends RecyclerBaseAdapter<String, SignTimeItemAdapterX.ViewHolderX> {


    public SignTimeItemAdapterX(Context context) {
        super(context);
    }

    @Override
    public ViewHolderX onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = inflater.inflate(R.layout.item_sign_x, parent, false);
        return new ViewHolderX(view);
    }

    @Override
    public void onBindViewHolder(ViewHolderX holder, String item, int position) {
        holder.tv_sing_on.setText(URLDecoderUtil.getDecoder(item));
    }

    class ViewHolderX extends RecyclerView.ViewHolder {
        TextView tv_sing_on;

        public ViewHolderX(View itemView) {
            super(itemView);
            tv_sing_on = (TextView) itemView.findViewById(R.id.tv_sing_on);
        }
    }
}
